package com.qwz.learn;

/**
 * @Description: 饿汉模式  - 线程安全，比较常用，但容易产生垃圾，因为一开始就初始化
 * @Author: Qiuwuzhi
 * @CreateDate: 2019/12/12  9:12
 * @Version V1.0
 */
public class SingletonLazy {

    private static SingletonLazy instance = new SingletonLazy();

    private SingletonLazy() {
    }

    public static SingletonLazy getInstance() {
        return instance;
    }
}
